package http.raw;

import java.io.InputStream;
import java.net.HttpURLConnection;

import com.erp.service.util.net.IResponseInfo;


public class HttpUrlConnectionResponseInfo implements IResponseInfo {

	/**
	 * 链接对象
	 */
	private HttpURLConnection conn;
	
	/**
	 * 状态码
	 */
	private int statusCode;
	
    private String encoding;    

    private String responseMessage;

    private InputStream inputStream;
    

    @Override
    public String getEncoding() {
        return encoding;
    }
    
    @Override
    public int getStatusCode() {
        return statusCode;
    }

    @Override
    public String getResponseMessage() {
        return responseMessage;
    }

    @Override
    public InputStream getInputStream() {
        return inputStream;
    }

    public HttpURLConnection getHttpURLConnection(){
        return conn;
    }

    public HttpUrlConnectionResponseInfo(HttpURLConnection conn){
        this.conn = conn;
    }
}
